package com.hwl.demo11.factory;

import com.hwl.demo11.service.IDepartment;
import com.hwl.demo11.service.IFactory;
import com.hwl.demo11.service.IUser;
import com.hwl.demo11.service.impl.SqlserverDepartment;
import com.hwl.demo11.service.impl.SqlserverUser;

/**
 * @author sentry
 * @since 2023-03-19
 */
public class SqlServerFactory implements IFactory {
    @Override
    public IUser createUser() {
        return new SqlserverUser();
    }

    @Override
    public IDepartment createDepartment() {
        return new SqlserverDepartment();
    }
}
